<%--
  Created by IntelliJ IDEA.
  User: zaneyang
  Date: 9/8/21
  Time: 6:41 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="frm" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>用户信息列表</title>
</head>
<body>
<table   border="1" cellspacing="0">
    <tr>
        <th>id</th>
        <th>昵称</th>
        <th>创建时间</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${data.list}" var="account">
        <tr>
            <td>${account.id}</td>
            <td>${account.nickName}</td>
            <td><frm:formatDate value="${account.createdDt}" pattern="yyyy-MM-dd kk:mm:ss"></frm:formatDate></td>
            <td>
                <a href="#">修改</a>
                <a href="#">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>

<div>
    <a href="${pageContext.request.contextPath}/userInfo/page?pageNum=1">首页</a>
    <a href="${pageContext.request.contextPath}/userInfo/page?pageNum=${data.isFirstPage?1:data.prePage}">上一页</a>
    <a href="${pageContext.request.contextPath}/userInfo/page?pageNum=${data.isLastPage?data.pages:data.nextPage}">下一页</a>
    <a href="${pageContext.request.contextPath}/userInfo/page?pageNum=${data.pages}">尾页</a>

    当前处于第<font color="red">${data.pageNum}</font>页
    总共<font color="red">${data.pages}</font>页
    总共<font color="red">${data.total}</font>条
</div>
</body>
</html>
